<template>
  <div class="child">
    <h3>我是Child</h3>
    <button @click="$emit('changeCount', 2)">对父组件count进行累加</button>
  </div>
</template>

<script>
export default {
  name: "Props",
};
</script>

<style scoped>
.child {
  background-color: skyblue;
}
</style>